#include "junix.h"

int main(int argc, char **argv)
{
	char *old_locale;

	old_locale=setlocale(LC_ALL,NULL);
	if(!old_locale)
		err_quit("setlocale error");
	fprintf(stdout, "%s\n", old_locale);

	setlocale(LC_ALL,"zh_CN.utf8");
	old_locale=setlocale(LC_ALL,NULL);
	if(!old_locale)
		err_quit("setlocale error");
	fprintf(stdout, "%s\n", old_locale);

	setlocale(LC_ALL,"XYZV");
	old_locale=setlocale(LC_ALL,NULL);
	if(!old_locale)
		err_quit("setlocale error");
	fprintf(stdout, "%s\n", old_locale);
    exit(0);
}

